/*CodeBuilder v2.0.1 by 2022-06-01 14:48 */
using System;
using ASmile.ORM.Entitys;

namespace ASmile.DBModel
{
	public partial class Sys_TableNotes : EntityBase
	{
		private System.String _TableName;
		/// <summary>
		/// TableName
		/// </summary>
		[Entity(CNTableName, 0, true, IsPrimaryKey = true)]
		public System.String TableName
		{
			get { return _TableName; }
			set
			{
				if (!OnPropertyChanged(CNTableName, _TableName, value)) return;
				_TableName = value;
				SetFieldChanged(CNTableName) ;
			}
		}

		private System.String _TableCaption;
		/// <summary>
		/// 表说明
		/// </summary>
		[Entity(CNTableCaption, 1)]
		public System.String TableCaption
		{
			get { return _TableCaption; }
			set
			{
				if (!OnPropertyChanged(CNTableCaption, _TableCaption, value)) return;
				_TableCaption = value;
				SetFieldChanged(CNTableCaption) ;
			}
		}

		private System.Int32 _ColOrder;
		/// <summary>
		/// 字段顺序
		/// </summary>
		[Entity(CNColOrder, 2, true, IsPrimaryKey = true)]
		public System.Int32 ColOrder
		{
			get { return _ColOrder; }
			set
			{
				if (!OnPropertyChanged(CNColOrder, _ColOrder, value)) return;
				_ColOrder = value;
				SetFieldChanged(CNColOrder) ;
			}
		}

		private System.String _ColName;
		/// <summary>
		/// 字段名称
		/// </summary>
		[Entity(CNColName, 3, true)]
		public System.String ColName
		{
			get { return _ColName; }
			set
			{
				if (!OnPropertyChanged(CNColName, _ColName, value)) return;
				_ColName = value;
				SetFieldChanged(CNColName) ;
			}
		}

		private System.String _ColCaption;
		/// <summary>
		/// ColCaption
		/// </summary>
		[Entity(CNColCaption, 4)]
		public System.String ColCaption
		{
			get { return _ColCaption; }
			set
			{
				if (!OnPropertyChanged(CNColCaption, _ColCaption, value)) return;
				_ColCaption = value;
				SetFieldChanged(CNColCaption) ;
			}
		}

		private System.Boolean _IsPrimaryKey;
		/// <summary>
		/// IsPrimaryKey
		/// </summary>
		[Entity(CNIsPrimaryKey, 5, true)]
		public System.Boolean IsPrimaryKey
		{
			get { return _IsPrimaryKey; }
			set
			{
				if (!OnPropertyChanged(CNIsPrimaryKey, _IsPrimaryKey, value)) return;
				_IsPrimaryKey = value;
				SetFieldChanged(CNIsPrimaryKey) ;
			}
		}

		private System.String _DataType;
		/// <summary>
		/// 数据类型
		/// </summary>
		[Entity(CNDataType, 6, true)]
		public System.String DataType
		{
			get { return _DataType; }
			set
			{
				if (!OnPropertyChanged(CNDataType, _DataType, value)) return;
				_DataType = value;
				SetFieldChanged(CNDataType) ;
			}
		}

		private System.Int32 _DataSize;
		/// <summary>
		/// 占用字节
		/// </summary>
		[Entity(CNDataSize, 7, true)]
		public System.Int32 DataSize
		{
			get { return _DataSize; }
			set
			{
				if (!OnPropertyChanged(CNDataSize, _DataSize, value)) return;
				_DataSize = value;
				SetFieldChanged(CNDataSize) ;
			}
		}

		private System.Int32 _DataLength;
		/// <summary>
		/// 数据长度
		/// </summary>
		[Entity(CNDataLength, 8, true)]
		public System.Int32 DataLength
		{
			get { return _DataLength; }
			set
			{
				if (!OnPropertyChanged(CNDataLength, _DataLength, value)) return;
				_DataLength = value;
				SetFieldChanged(CNDataLength) ;
			}
		}

		private System.Int32 _ScaleSize;
		/// <summary>
		/// 小数位数
		/// </summary>
		[Entity(CNScaleSize, 9, true)]
		public System.Int32 ScaleSize
		{
			get { return _ScaleSize; }
			set
			{
				if (!OnPropertyChanged(CNScaleSize, _ScaleSize, value)) return;
				_ScaleSize = value;
				SetFieldChanged(CNScaleSize) ;
			}
		}

		private System.Boolean _IsNullable;
		/// <summary>
		/// 允许为空
		/// </summary>
		[Entity(CNIsNullable, 10, true)]
		public System.Boolean IsNullable
		{
			get { return _IsNullable; }
			set
			{
				if (!OnPropertyChanged(CNIsNullable, _IsNullable, value)) return;
				_IsNullable = value;
				SetFieldChanged(CNIsNullable) ;
			}
		}

		private System.String _DefaultVal;
		/// <summary>
		/// 默认值
		/// </summary>
		[Entity(CNDefaultVal, 11)]
		public System.String DefaultVal
		{
			get { return _DefaultVal; }
			set
			{
				if (!OnPropertyChanged(CNDefaultVal, _DefaultVal, value)) return;
				_DefaultVal = value;
				SetFieldChanged(CNDefaultVal) ;
			}
		}

		private System.Boolean _IsDel;
		/// <summary>
		/// 是否隐藏
		/// </summary>
		[Entity(CNIsDel, 12, true)]
		public System.Boolean IsDel
		{
			get { return _IsDel; }
			set
			{
				if (!OnPropertyChanged(CNIsDel, _IsDel, value)) return;
				_IsDel = value;
				SetFieldChanged(CNIsDel) ;
			}
		}

		#region 字段名的定义
		public const string CNTableName = "TableName";
		public const string CNTableCaption = "TableCaption";
		public const string CNColOrder = "ColOrder";
		public const string CNColName = "ColName";
		public const string CNColCaption = "ColCaption";
		public const string CNIsPrimaryKey = "IsPrimaryKey";
		public const string CNDataType = "DataType";
		public const string CNDataSize = "DataSize";
		public const string CNDataLength = "DataLength";
		public const string CNScaleSize = "ScaleSize";
		public const string CNIsNullable = "IsNullable";
		public const string CNDefaultVal = "DefaultVal";
		public const string CNIsDel = "IsDel";
		#endregion

	}
}
